package org.darkforest.common.services;

import org.darkforest.model.GoodsRecommend;
import org.darkforest.vo.AjaxReturnData;

import java.util.List;

/**
 * Created by Administrator on 2016/1/25.
 * 分类推荐商品
 */
public interface GoodsRecommendService {



    int deleteByPrimaryKey(Integer recommendId);

    int insert(GoodsRecommend record);

    int insertSelective(GoodsRecommend record);

    GoodsRecommend selectByPrimaryKey(Integer recommendId);

    int updateByPrimaryKeySelective(GoodsRecommend record);

    int updateByPrimaryKeyWithBLOBs(GoodsRecommend record);

    int updateByPrimaryKey(GoodsRecommend record);


    List<GoodsRecommend> findListByCondition(GoodsRecommend record);


    /**
     * 设置为分类推荐商品
     * @param goodsId
     * @param url
     * @return
     */
    AjaxReturnData doSetRecommendGoods(Integer goodsId, String url);
}
